/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tv.global.dao;

import javax.ejb.Stateless;
import tv.global.modelo.Parametro;

/**
 *
 * @author Claudio
 */
@Stateless
public class ParametrosDAO extends BaseDAO {

    public void guardar(Parametro parametros)throws Exception{
        getEntityManager().persist(parametros);
    }

    public void editar(Parametro parametro)throws Exception{
        getEntityManager().merge(parametro);
    }

    public Parametro getParametros(){

        return  getEntityManager().find(Parametro.class, 1);

    }
    
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
 
}
